@import "~_s/variables";
@import "~_s/placeholders";
$backgroundColor: #F0F2F5;

$bar-height:50px;
$main-height:calc(100vh - #{$bar-height} * 2);
$db-height:calc(100vh - #{$bar-height});

.el-header,
.el-footer {
	color: map-get($colors, 'white');
	height: $bar-height !important;
}

.el-header {
	background-color: map-get($colors, 'blue');

	&.system,
	&.dashboard {
		background-color: $color-background-b;
	}
}

.el-footer {
	background-color: $color-background-b;
}

.el-aside,
.el-main {
	color: $color-text-primary;
	text-align: center;
	height: $main-height;
	padding: 15px !important;

	.main-content {
		$gutter: 15px;
		height: calc(100% - 30px - #{$gutter});
		background-color: map-get($colors, 'white');
		margin-top: $gutter;
	}
}

.el-aside {
	background-color: map-get($colors, 'white');
}

.el-main {
	background-color: #E9EEF3;
}
.dashboard-layout,
.user-layout{
	.el-main {
		height: $db-height;
	}
}

%login-size{
	width: 30%;
	height: 100%;
}
.login-container {
	@extend %fullsize;
	background-color: $backgroundColor;
	overflow: hidden;
  position: relative;
	.login-layer{
		@extend %fullsize;
		position: relative;
		.circles {
		  position: absolute;
		  top: 0;
		  left: 0;
		  width: 100%;
		  height: 100%;
		  overflow: hidden;
		  li {
		    position: absolute;
		    display: block;
		    list-style: none;
		    width: 20px;
		    height: 20px;
		    background: #FFF;
		    animation: animate 25s linear infinite;
		    bottom: -200px;
		    @keyframes animate {
		      0%{
		        transform: translateY(0) rotate(0deg);
		        opacity: 1;
		        border-radius: 0;
		      }
		      100%{
		        transform: translateY(-1000px) rotate(720deg);
		        opacity: 0;
		        border-radius: 50%;
		      }
		    }
		    &:nth-child(1) {
		      left: 15%;
		      width: 80px;
		      height: 80px;
		      animation-delay: 0s;
		    }
		    &:nth-child(2) {
		      left: 5%;
		      width: 20px;
		      height: 20px;
		      animation-delay: 2s;
		      animation-duration: 12s;
		    }
		    &:nth-child(3) {
		      left: 70%;
		      width: 20px;
		      height: 20px;
		      animation-delay: 4s;
		    }
		    &:nth-child(4) {
		      left: 40%;
		      width: 60px;
		      height: 60px;
		      animation-delay: 0s;
		      animation-duration: 18s;
		    }
		    &:nth-child(5) {
		      left: 65%;
		      width: 20px;
		      height: 20px;
		      animation-delay: 0s;
		    }
		    &:nth-child(6) {
		      left: 75%;
		      width: 150px;
		      height: 150px;
		      animation-delay: 3s;
		    }
		    &:nth-child(7) {
		      left: 35%;
		      width: 200px;
		      height: 200px;
		      animation-delay: 7s;
		    }
		    &:nth-child(8) {
		      left: 50%;
		      width: 25px;
		      height: 25px;
		      animation-delay: 15s;
		      animation-duration: 45s;
		    }
		    &:nth-child(9) {
		      left: 20%;
		      width: 15px;
		      height: 15px;
		      animation-delay: 2s;
		      animation-duration: 35s;
		    }
		    &:nth-child(10) {
		      left: 85%;
		      width: 150px;
		      height: 150px;
		      animation-delay: 0s;
		      animation-duration: 11s;
		    }
		  }
		}
	}
	.login-content{
		@extend %fullsize;
		position: absolute;
		left: 0;
		top:0;
		display: flex;
		justify-content: center;
		align-items: center;
		.login-content__left{
			width: 30%;
			height: 30%;
			text-align: left;
			padding-left: 0px;
		}
		.login-content__middle{
			width: 402px;
			height: 349px;
			background: url('~@/assets/img/bg_login.png') no-repeat center/contain;
			margin: 0px 40px 0px -10px;
		}
		.login-content__right{
			width: 30%;
			height: 70%;
		}
	}
}
